home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Internet MacSoftware / Mac-ImageMap1.3 folder / demomap / DemoPicture.map < prev    next >
Encoding:
Text File  |  1994-11-15  |  3.0 KB  |  80 lines  |  [TEXT/ttxt]

  1. # DemoPicture.map
  2. #
  3. # Example Mac-imagemap map file.
  4. # by: Lutz Weimann
  5. # latest modification at: 14th November 1994
  6. #
  7.  
  8. # uncomment the following line to switch testmode on:
  9. #testmode
  10.  
  11. # default originally defines the URL to be returned, if no region
  12. # specified below has been clicked: just points to some homepage.
  13. # (Should actually never be referenced, since point specifications
  14. # follow below.)
  15. default http://anywhere.host/
  16.  
  17. # point xp,yp - specifies a point. The URL of the nearest point replaces
  18. # the 
  19. # Each click outside a specific area within the left pictures side
  20. # map to the following url:
  21. point /imagemap/demomap/other_left.html
  22. 2,100
  23.  
  24. # Each click outside a specific area within the right pictures side
  25. # map to the following url:
  26. point /imagemap/demomap/other_right.html 399,100
  27.  
  28. # rect defines a rectangle by its upper left and lower right corner.
  29. #
  30. rect /imagemap/demomap/green_rect.gif 36,25 99,99
  31.  
  32. # note: the following area (yellow rectangle) lies within the area of 
  33. #       red_circle. Since the first match in order is returned to the
  34. #       Web-client, yellow_rect will be newer returned if placed after
  35. #       red_circle.
  36. #
  37. rect /imagemap/demomap/yellow_rect.gif 162,60 192,79
  38.  
  39. # circle defines a circle by the circles middle point and
  40. # an arbitrary point on the circles edge.
  41. #
  42. circle /imagemap/demomap/red_circle.gif 176,67 214,67
  43.  
  44. # circ defines a circle or an ellipse by the upper left and
  45. # lower right corner of the covering rectangle.
  46. #
  47. # this specification will be probably not understood by the
  48. # httpd-imagemap program, and so, it has been written as a pseudo
  49. # comment. So this map file can be used by httpd-imagemap under
  50. # UNIX without any modifications (please tell me if I'm wrong with
  51. # this statement). This statement is interpreted by
  52. # Mac-imagemap, just as there were no leading characters #$ .
  53. #
  54. #$circ /imagemap/demomap/cyan_ellipse.gif 54,128 145,175
  55.  
  56. # circrad defines a circle by its center point and its radius.
  57. # this type of specification will no longer be supported within
  58. # future versions. Use instead of 
  59. # "circrad x,y r" the specification "circle x,y x+r,y"
  60. #
  61. #$circrad /imagemap/demomap/blue_circle.gif 286,149 24
  62.  
  63. # Finally, two arbitrary polygonal regions are defined within
  64. # this map. Note that the first point and the last point of the
  65. # polygons match, just as you will get it usually when generating
  66. # these lines with WebMap. If the last point does not match the
  67. # first one, Mac-ImageMap internally adds a point to the polygon
  68. # behind the last one which has the same coordinates as the first
  69. # polygon-point.
  70. # Note also that the poly-specifications are written on multiple
  71. # lines. Mac-ImageMap just checks, if a line begins with a letter
  72. # (lowercase or uppercase) to identify a line where a new 
  73. # specification begins.
  74. #
  75. poly /imagemap/demomap/pink_poly.gif 182,126
  76. 206,126 215,143 215,166 203,178 180,178 169,168 169,141 182,126
  77.  
  78. poly /imagemap/demomap/green_poly.gif 301,11
  79. 321,51 349,51 319,81 343,107 296,83 250,110 277,81 246,50 273,51 301,11
  80.